Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move .sagemaker-last-active-timestamp to /tmp/ #80

Merged
merged 1 commit into from
Oct 16, 2024
Merged

Conversation

aws-asolidu
Copy link
Contributor

@aws-asolidu aws-asolidu commented Oct 15, 2024

When hosted on SageMaker Studio with autoshutdown enabled, the .sagemaker-last-active-timestamp file persisted across restarts. This caused a race condition where the autoshutdown checker would read an outdated timestamp before it could be refreshed.

To address this issue, the file will now be moved to a temporary folder that is removed upon shutdown. On restart, the file will be recreated with an updated timestamp, ensuring accurate tracking of activity.

@aws-asolidu aws-asolidu merged commit 2c2ebd5 into main Oct 16, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants